Add a field for an "add to shortcuts" menu item. (popup_menu_detach_cb):
authorFederico Mena Quintero <federico@ximian.com>
Thu, 29 Jul 2004 20:53:52 +0000 (20:53 +0000)
committerFederico Mena Quintero <federico@src.gnome.org>
Thu, 29 Jul 2004 20:53:52 +0000 (20:53 +0000)
commit15f23d383c347445272e3ae0f91544e0ad9b508f
tree029360d6335a4196b03607991779e41f4a56fa3c
parent705a7066c3f9cfc20479c78fbf41164f46712a45
Add a field for an "add to shortcuts" menu item. (popup_menu_detach_cb):

2004-07-29  Federico Mena Quintero  <federico@ximian.com>

* gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault): Add
a field for an "add to shortcuts" menu item.
(popup_menu_detach_cb): Clear out the field.
(file_list_build_popup_menu): Only build the menu here.
(file_list_update_popup_menu): Build the menu, then update the
sensitivity of its items.
(file_list_popup_menu): Use file_list_update_popup_menu().
(bookmarks_check_add_sensitivity): Also set the sensitivity of the
popup menu item.  Correctly handle the case for a *single* file.
Simplify a bit.
(bookmarks_add_selected_folder): New helper function; code moved
over from add_bookmark_button_clicked_cb().
(add_bookmark_button_clicked_cb): Use the function above.
(selection_check): Rather than returning a boolean value for
emptiness, actually return the number of selected rows.  Also,
simplify a bit.
(get_selected_path): New helper function.
ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkfilechooserdefault.c